3.1.39 \(\int \frac {a+b x^2}{(c+d x^2)^{3/2} \sqrt {e+f x^2}} \, dx\) [39]

Optimal. Leaf size=209 \[ -\frac {(b c-a d) \sqrt {e+f x^2} E\left (\tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )|1-\frac {c f}{d e}\right )}{\sqrt {c} \sqrt {d} (d e-c f) \sqrt {c+d x^2} \sqrt {\frac {c \left (e+f x^2\right )}{e \left (c+d x^2\right )}}}+\frac {\sqrt {e} (b e-a f) \sqrt {c+d x^2} F\left (\tan ^{-1}\left (\frac {\sqrt {f} x}{\sqrt {e}}\right )|1-\frac {d e}{c f}\right )}{c \sqrt {f} (d e-c f) \sqrt {\frac {e \left (c+d x^2\right )}{c \left (e+f x^2\right )}} \sqrt {e+f x^2}} \]

[Out]

(-a*f+b*e)*(1/(1+f*x^2/e))^(1/2)*(1+f*x^2/e)^(1/2)*EllipticF(x*f^(1/2)/e^(1/2)/(1+f*x^2/e)^(1/2),(1-d*e/c/f)^(
1/2))*e^(1/2)*(d*x^2+c)^(1/2)/c/(-c*f+d*e)/f^(1/2)/(e*(d*x^2+c)/c/(f*x^2+e))^(1/2)/(f*x^2+e)^(1/2)-(-a*d+b*c)*
(1/(1+d*x^2/c))^(1/2)*(1+d*x^2/c)^(1/2)*EllipticE(x*d^(1/2)/c^(1/2)/(1+d*x^2/c)^(1/2),(1-c*f/d/e)^(1/2))*(f*x^
2+e)^(1/2)/(-c*f+d*e)/c^(1/2)/d^(1/2)/(d*x^2+c)^(1/2)/(c*(f*x^2+e)/e/(d*x^2+c))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.06, antiderivative size = 209, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {539, 429, 422} \begin {gather*} \frac {\sqrt {e} \sqrt {c+d x^2} (b e-a f) F\left (\text {ArcTan}\left (\frac {\sqrt {f} x}{\sqrt {e}}\right )|1-\frac {d e}{c f}\right )}{c \sqrt {f} \sqrt {e+f x^2} (d e-c f) \sqrt {\frac {e \left (c+d x^2\right )}{c \left (e+f x^2\right )}}}-\frac {\sqrt {e+f x^2} (b c-a d) E\left (\text {ArcTan}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )|1-\frac {c f}{d e}\right )}{\sqrt {c} \sqrt {d} \sqrt {c+d x^2} (d e-c f) \sqrt {\frac {c \left (e+f x^2\right )}{e \left (c+d x^2\right )}}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*x^2)/((c + d*x^2)^(3/2)*Sqrt[e + f*x^2]),x]

[Out]

-(((b*c - a*d)*Sqrt[e + f*x^2]*EllipticE[ArcTan[(Sqrt[d]*x)/Sqrt[c]], 1 - (c*f)/(d*e)])/(Sqrt[c]*Sqrt[d]*(d*e
- c*f)*Sqrt[c + d*x^2]*Sqrt[(c*(e + f*x^2))/(e*(c + d*x^2))])) + (Sqrt[e]*(b*e - a*f)*Sqrt[c + d*x^2]*Elliptic
F[ArcTan[(Sqrt[f]*x)/Sqrt[e]], 1 - (d*e)/(c*f)])/(c*Sqrt[f]*(d*e - c*f)*Sqrt[(e*(c + d*x^2))/(c*(e + f*x^2))]*
Sqrt[e + f*x^2])

Rule 422

Int[Sqrt[(a_) + (b_.)*(x_)^2]/((c_) + (d_.)*(x_)^2)^(3/2), x_Symbol] :> Simp[(Sqrt[a + b*x^2]/(c*Rt[d/c, 2]*Sq
rt[c + d*x^2]*Sqrt[c*((a + b*x^2)/(a*(c + d*x^2)))]))*EllipticE[ArcTan[Rt[d/c, 2]*x], 1 - b*(c/(a*d))], x] /;
FreeQ[{a, b, c, d}, x] && PosQ[b/a] && PosQ[d/c]

Rule 429

Int[1/(Sqrt[(a_) + (b_.)*(x_)^2]*Sqrt[(c_) + (d_.)*(x_)^2]), x_Symbol] :> Simp[(Sqrt[a + b*x^2]/(a*Rt[d/c, 2]*
Sqrt[c + d*x^2]*Sqrt[c*((a + b*x^2)/(a*(c + d*x^2)))]))*EllipticF[ArcTan[Rt[d/c, 2]*x], 1 - b*(c/(a*d))], x] /
; FreeQ[{a, b, c, d}, x] && PosQ[d/c] && PosQ[b/a] &&  !SimplerSqrtQ[b/a, d/c]

Rule 539

Int[((e_) + (f_.)*(x_)^2)/(Sqrt[(a_) + (b_.)*(x_)^2]*((c_) + (d_.)*(x_)^2)^(3/2)), x_Symbol] :> Dist[(b*e - a*
f)/(b*c - a*d), Int[1/(Sqrt[a + b*x^2]*Sqrt[c + d*x^2]), x], x] - Dist[(d*e - c*f)/(b*c - a*d), Int[Sqrt[a + b
*x^2]/(c + d*x^2)^(3/2), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && PosQ[b/a] && PosQ[d/c]

Rubi steps

\begin {align*} \int \frac {a+b x^2}{\left (c+d x^2\right )^{3/2} \sqrt {e+f x^2}} \, dx &=-\frac {(b c-a d) \int \frac {\sqrt {e+f x^2}}{\left (c+d x^2\right )^{3/2}} \, dx}{d e-c f}+\frac {(b e-a f) \int \frac {1}{\sqrt {c+d x^2} \sqrt {e+f x^2}} \, dx}{d e-c f}\\ &=-\frac {(b c-a d) \sqrt {e+f x^2} E\left (\tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )|1-\frac {c f}{d e}\right )}{\sqrt {c} \sqrt {d} (d e-c f) \sqrt {c+d x^2} \sqrt {\frac {c \left (e+f x^2\right )}{e \left (c+d x^2\right )}}}+\frac {\sqrt {e} (b e-a f) \sqrt {c+d x^2} F\left (\tan ^{-1}\left (\frac {\sqrt {f} x}{\sqrt {e}}\right )|1-\frac {d e}{c f}\right )}{c \sqrt {f} (d e-c f) \sqrt {\frac {e \left (c+d x^2\right )}{c \left (e+f x^2\right )}} \sqrt {e+f x^2}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C] Result contains complex when optimal does not.
time = 7.30, size = 206, normalized size = 0.99 \begin {gather*} \frac {\sqrt {\frac {d}{c}} \left (\sqrt {\frac {d}{c}} (b c-a d) x \left (e+f x^2\right )+i (b c-a d) e \sqrt {1+\frac {d x^2}{c}} \sqrt {1+\frac {f x^2}{e}} E\left (i \sinh ^{-1}\left (\sqrt {\frac {d}{c}} x\right )|\frac {c f}{d e}\right )-i a (-d e+c f) \sqrt {1+\frac {d x^2}{c}} \sqrt {1+\frac {f x^2}{e}} F\left (i \sinh ^{-1}\left (\sqrt {\frac {d}{c}} x\right )|\frac {c f}{d e}\right )\right )}{d (-d e+c f) \sqrt {c+d x^2} \sqrt {e+f x^2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*x^2)/((c + d*x^2)^(3/2)*Sqrt[e + f*x^2]),x]

[Out]

(Sqrt[d/c]*(Sqrt[d/c]*(b*c - a*d)*x*(e + f*x^2) + I*(b*c - a*d)*e*Sqrt[1 + (d*x^2)/c]*Sqrt[1 + (f*x^2)/e]*Elli
pticE[I*ArcSinh[Sqrt[d/c]*x], (c*f)/(d*e)] - I*a*(-(d*e) + c*f)*Sqrt[1 + (d*x^2)/c]*Sqrt[1 + (f*x^2)/e]*Ellipt
icF[I*ArcSinh[Sqrt[d/c]*x], (c*f)/(d*e)]))/(d*(-(d*e) + c*f)*Sqrt[c + d*x^2]*Sqrt[e + f*x^2])

________________________________________________________________________________________

Maple [A]
time = 0.12, size = 334, normalized size = 1.60

method result size
default \(\frac {\left (-\sqrt {-\frac {d}{c}}\, a d f \,x^{3}+\sqrt {-\frac {d}{c}}\, b c f \,x^{3}+\sqrt {\frac {d \,x^{2}+c}{c}}\, \sqrt {\frac {f \,x^{2}+e}{e}}\, \EllipticF \left (x \sqrt {-\frac {d}{c}}, \sqrt {\frac {c f}{d e}}\right ) a c f -\sqrt {\frac {d \,x^{2}+c}{c}}\, \sqrt {\frac {f \,x^{2}+e}{e}}\, \EllipticF \left (x \sqrt {-\frac {d}{c}}, \sqrt {\frac {c f}{d e}}\right ) a d e +\sqrt {\frac {d \,x^{2}+c}{c}}\, \sqrt {\frac {f \,x^{2}+e}{e}}\, \EllipticE \left (x \sqrt {-\frac {d}{c}}, \sqrt {\frac {c f}{d e}}\right ) a d e -\sqrt {\frac {d \,x^{2}+c}{c}}\, \sqrt {\frac {f \,x^{2}+e}{e}}\, \EllipticE \left (x \sqrt {-\frac {d}{c}}, \sqrt {\frac {c f}{d e}}\right ) b c e -\sqrt {-\frac {d}{c}}\, a d e x +\sqrt {-\frac {d}{c}}\, b c e x \right ) \sqrt {f \,x^{2}+e}\, \sqrt {d \,x^{2}+c}}{c \sqrt {-\frac {d}{c}}\, \left (c f -d e \right ) \left (d f \,x^{4}+c f \,x^{2}+d e \,x^{2}+c e \right )}\) \(334\)
elliptic \(\frac {\sqrt {\left (d \,x^{2}+c \right ) \left (f \,x^{2}+e \right )}\, \left (-\frac {\left (d f \,x^{2}+d e \right ) x \left (a d -b c \right )}{d c \left (c f -d e \right ) \sqrt {\left (x^{2}+\frac {c}{d}\right ) \left (d f \,x^{2}+d e \right )}}+\frac {\left (\frac {b}{d}+\frac {a d -b c}{c d}+\frac {e \left (a d -b c \right )}{c \left (c f -d e \right )}\right ) \sqrt {1+\frac {d \,x^{2}}{c}}\, \sqrt {1+\frac {f \,x^{2}}{e}}\, \EllipticF \left (x \sqrt {-\frac {d}{c}}, \sqrt {-1+\frac {c f +d e}{e d}}\right )}{\sqrt {-\frac {d}{c}}\, \sqrt {d f \,x^{4}+c f \,x^{2}+d e \,x^{2}+c e}}-\frac {\left (a d -b c \right ) e \sqrt {1+\frac {d \,x^{2}}{c}}\, \sqrt {1+\frac {f \,x^{2}}{e}}\, \left (\EllipticF \left (x \sqrt {-\frac {d}{c}}, \sqrt {-1+\frac {c f +d e}{e d}}\right )-\EllipticE \left (x \sqrt {-\frac {d}{c}}, \sqrt {-1+\frac {c f +d e}{e d}}\right )\right )}{c \left (c f -d e \right ) \sqrt {-\frac {d}{c}}\, \sqrt {d f \,x^{4}+c f \,x^{2}+d e \,x^{2}+c e}}\right )}{\sqrt {d \,x^{2}+c}\, \sqrt {f \,x^{2}+e}}\) \(368\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x^2+a)/(d*x^2+c)^(3/2)/(f*x^2+e)^(1/2),x,method=_RETURNVERBOSE)

[Out]

(-(-d/c)^(1/2)*a*d*f*x^3+(-d/c)^(1/2)*b*c*f*x^3+((d*x^2+c)/c)^(1/2)*((f*x^2+e)/e)^(1/2)*EllipticF(x*(-d/c)^(1/
2),(c*f/d/e)^(1/2))*a*c*f-((d*x^2+c)/c)^(1/2)*((f*x^2+e)/e)^(1/2)*EllipticF(x*(-d/c)^(1/2),(c*f/d/e)^(1/2))*a*
d*e+((d*x^2+c)/c)^(1/2)*((f*x^2+e)/e)^(1/2)*EllipticE(x*(-d/c)^(1/2),(c*f/d/e)^(1/2))*a*d*e-((d*x^2+c)/c)^(1/2
)*((f*x^2+e)/e)^(1/2)*EllipticE(x*(-d/c)^(1/2),(c*f/d/e)^(1/2))*b*c*e-(-d/c)^(1/2)*a*d*e*x+(-d/c)^(1/2)*b*c*e*
x)*(f*x^2+e)^(1/2)*(d*x^2+c)^(1/2)/c/(-d/c)^(1/2)/(c*f-d*e)/(d*f*x^4+c*f*x^2+d*e*x^2+c*e)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)/(d*x^2+c)^(3/2)/(f*x^2+e)^(1/2),x, algorithm="maxima")

[Out]

integrate((b*x^2 + a)/((d*x^2 + c)^(3/2)*sqrt(f*x^2 + e)), x)

________________________________________________________________________________________

Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)/(d*x^2+c)^(3/2)/(f*x^2+e)^(1/2),x, algorithm="fricas")

[Out]

Exception raised: TypeError >> Symbolic function elliptic_ec takes exactly 1 arguments (2 given)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a + b x^{2}}{\left (c + d x^{2}\right )^{\frac {3}{2}} \sqrt {e + f x^{2}}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x**2+a)/(d*x**2+c)**(3/2)/(f*x**2+e)**(1/2),x)

[Out]

Integral((a + b*x**2)/((c + d*x**2)**(3/2)*sqrt(e + f*x**2)), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)/(d*x^2+c)^(3/2)/(f*x^2+e)^(1/2),x, algorithm="giac")

[Out]

integrate((b*x^2 + a)/((d*x^2 + c)^(3/2)*sqrt(f*x^2 + e)), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {b\,x^2+a}{{\left (d\,x^2+c\right )}^{3/2}\,\sqrt {f\,x^2+e}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*x^2)/((c + d*x^2)^(3/2)*(e + f*x^2)^(1/2)),x)

[Out]

int((a + b*x^2)/((c + d*x^2)^(3/2)*(e + f*x^2)^(1/2)), x)

________________________________________________________________________________________